package com.mrzhou.common.feign.fallback;

import com.mrzhou.common.entity.system.UserInfo;
import com.mrzhou.common.feign.client.IUserClient;
import com.mrzhou.core.tool.api.R;

public class UserClientFallback implements IUserClient {

    private R result;

    public UserClientFallback(String message) {
        result = R.fail(message);
    }

    @Override
    public R<UserInfo> userInfo(String username) {
        return result;
    }

    @Override
    public R<UserInfo> userInfoById(Long userId) {
        return result;
    }

}
